package com.haungg.sys;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.haungg.base.BaseServiceImpl;
import com.haungg.po.TMenu;

@Service("menuService")
@Transactional(readOnly=true)
public class MenuServiceImpl extends BaseServiceImpl<TMenu> implements IMenuService {
	
	@Resource
	private MenuDao menuDao;

	public List<TMenu> query(TMenu tMenu) {
		if(tMenu.getParentSid()!=null) {
			return baseDao.find("from TMenu where parentSid="+tMenu.getParentSid());
		}
		return null;
	}

}
